package cn.ilikes.tools.nosql.jpa.clients.schemas;

import cn.ilikes.tools.nosql.jpa.clients.admins.IAdmin;
import cn.ilikes.tools.nosql.jpa.clients.admins.JPAAdminRunTimeException;

public class SchemaManagerImples<V> {

	private IAdmin<V> admin;

	private boolean init = false;

	protected SchemaManagerImples(IAdmin<V> admin) {
		super();
		this.admin = admin;
	}

	public IAdmin<V> getSchemaAdmin() {
		return admin;
	}

	protected boolean isInit() {
		return init;
	}

	protected void setInit(boolean init) {
		this.init = init;
	}

	protected void checkInit() {
		boolean init = isInit();
		if (!init)
			throw new JPAAdminRunTimeException("JPA Hbase Admin Not init ... ");
	}

}
